package com.yangle.shell.dao;

import com.yangle.shell.bean.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Author: yangle
 * Create Data: 2020/12/4
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail,String> {
        /**先通过查询order_master表，获取订单id，再通过订单id查询订单详情*/
        List<OrderDetail> findByOrderId(String orderId);
}
